package com.icesoft.system.starter;

import com.icesoft.framework.core.data.access.DataAccessInterface;
import com.icesoft.system.data.DataAccessPermissionUserOrgImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
@RequiredArgsConstructor
public class SystemAutoConfig {


	@Bean
	@ConditionalOnMissingBean
	public DataAccessInterface dataAccessInterface() {
		return new DataAccessPermissionUserOrgImpl();
	}

}
